<%@ tag body-content="empty"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@ attribute name="attrPath" required="true" rtexprvalue="false" type="java.lang.String" description="即columnName，对应的搜索field的HQL，例如:s.brandName"%>
<%@ attribute name="datatype" required="true" rtexprvalue="false" type="java.lang.String" description="搜索field的数据类型，支持:String,Integer,Short,BigDecimal,Date,Date_Begin,Date_End"%>
<%@ attribute name="operator" required="true" rtexprvalue="false" type="java.lang.String" description="搜索field的操作子:支持：EQ,LIKE,NOT,GTE,GT,LTE,LT"%>
<%@ attribute name="style" required="false" rtexprvalue="false" type="java.lang.String" description="搜索field input 的style属性"%>
<%@ attribute name="classes" required="false" rtexprvalue="false" type="java.lang.String" description="搜索field input 的class属性"%>
<%@ attribute name="size" required="false" rtexprvalue="false" type="java.lang.String" description="搜索field input 的size属性"%>
<c:set var="attrName">COL@${attrPath}@${datatype}@${operator}</c:set>
<input type="text" id="${attrName}" name="${attrName}" value="${sc==null?requestScope[attrName]:sc.param[attrName]}" 
		<c:if test="${not empty style}">style="${style}"</c:if> 
		<c:if test="${not empty classes}">class="${classes}"</c:if> 
		<c:if test="${not empty size}">size="${size}"</c:if>/>